#version 430 core

layout(location = 0) in vec2 pos;
out vec2 vPos;

uniform mat4 model;
uniform mat4 proj;

void main()
{
    vec4 temp = proj * model * vec4(pos.xy, 0, 1);
    vPos = temp.xy;
    gl_Position = temp;
}